package com.qk.management.controller;

import ch.qos.logback.core.pattern.util.RestrictedEscapeUtil;
import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.domain.operatelog.OperateLogDO;
import com.qk.dto.log.OperateLogDTO;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Just、倾城
 * @created 2025-10-17
 * @description
 *
 */
@RestController
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;
    @GetMapping("logs")
    public Result getLogs(OperateLogDTO dto){
        PageResult<OperateLogDO> data =operateLogService.pageList(dto);
        return Result.success(data);
    }
}
